/*
 * Address.java
 * 作用：实体类，对应数据库中的 `addresses` 表，用于封装收货地址数据。
 */
package com.campustradingwall.model;

public class Address {
    private int id;
    private int userId;
    private String address;
    private boolean isDefault;

    // Constructors
    public Address() {
    }

    // Getters and Setters
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public boolean isDefault() {
        return isDefault;
    }

    public void setDefault(boolean aDefault) {
        isDefault = aDefault;
    }
} 